<template>
  <div class="sub">
    <button @click="SubCounter(1)">-1</button>
    <button @click="SubCounter(5)">-5</button>
    <button @click="SubCounter(10)">-10</button>
  </div>
</template>

<script>
export default {
  methods: {
    SubCounter(count) {
      console.log(count, 111)
      this.$emit('sub', count)
    },
  },
}
</script>
<style scoped></style>
